/* 首页特定样式 */

/* 卡片统计区域 */
.task-management {
  background-color: #f5f7fa;
  padding: 10px 0;
  border-bottom: 1px solid #e6e9f0;
  text-align: center;
}

.task-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.task-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 15px;
  position: relative;
}

.task-stat-item:not(:last-child):after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: #e6e9f0;
}

.task-stat-number {
  font-size: 24px;
  font-weight: bold;
  color: #409eff;
  margin-bottom: 5px;
}

.task-stat-number.in-progress {
  color: #e6a23c;
}

.task-stat-number.completed {
  color: #67c23a;
}

.task-stat-number.total {
  color: #409eff;
}

.task-stat-label {
  font-size: 14px;
  color: #606266;
}

/* 维度选择器 */
.dimension-selector {
  margin-bottom: 20px;
  text-align: right;
}

/* 卡片组样式 */
.card-group {
  margin-bottom: 30px;
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ebeef5;
}

.group-header h3 {
  font-size: 18px;
  font-weight: 500;
  color: #303133;
}

/* 卡片列表 */
.card-list {
  margin-bottom: 20px;
}

/* 卡片样式 */
.card-item {
  position: relative;
  height: 180px;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-item:hover {
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.card-item .el-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.card-title {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
  color: #303133;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-content {
  flex: 1;
  margin-bottom: 10px;
  font-size: 14px;
  color: #606266;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 12px;
  color: #909399;
}

.card-owner {
  display: flex;
  align-items: center;
}

.card-owner .el-avatar {
  margin-right: 5px;
  background-color: #409eff;
  color: #fff;
}

.card-views {
  display: flex;
  align-items: center;
}

.card-views i {
  margin-right: 3px;
}

.card-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
}

/* 优先级标签颜色 */
.el-tag--danger {
  background-color: rgba(245, 108, 108, 0.1);
}

.el-tag--warning {
  background-color: rgba(230, 162, 60, 0.1);
}

.el-tag--success {
  background-color: rgba(103, 194, 58, 0.1);
}

/* 响应式卡片布局 */
@media (max-width: 768px) {
  .card-item {
    height: 150px;
  }
  
  .card-content {
    -webkit-line-clamp: 2;
  }
  
  .task-stats {
    flex-wrap: wrap;
  }
  
  .task-stat-item {
    padding: 5px 10px;
  }
  
  .task-stat-number {
    font-size: 20px;
  }
  
  .task-stat-label {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .group-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .group-header h3 {
    margin-bottom: 10px;
  }
  
  .task-stat-item:not(:last-child):after {
    display: none;
  }
  
  .task-stat-item {
    min-width: 33.33%;
  }
} 